<?= doctype('xhtml1-trans') ?>
<html xmlns="http://wwww.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link rel="icon" type="image/x-icon" href="http://www.tcfschina.com/favicon.ico" />
    <title><?= WEB_NAME ?><?= $title ? " - {$title}" : "" ?></title>
    <meta name="description" content="<?= $web_desc ? $web_desc : WEB_DESC ?>"/>
    <meta name="keywords" content="<?= $web_keywords ? $web_keywords : WEB_KEYWORDS ?>"/>
    <!--基本css-->
    <?= css(array(
        'base.css',
    )) ?>

    <!--附加css-->
    <?= css($css) ?>

    <!--基本js-->
    <?= js(array(
        'jquery/lib/jquery-1.7.1.min.js',
        'jquery/jquery.flexslider-min.js',
        'jquery/jquery.easing.1.3.js',
        'jquery/jquery.dbRotate2D.js',
        'jquery/jquery.backgroundPosition.js',
        'jquery/jquery.select2.js',
        'jquery/jquery.select2_locale_zh-CN.js',
        'jscroll.js'
    )) ?>

    <!--js全局变量-->
    <script type="text/javascript">
        (function($){
            $.G = {
                domain    : '<?= DOMAIN ?>',
                img_domain: '<?= IMG_DMOAIN ?>',
                css_domain: '<?= CSS_DOMAIN ?>',
                js_domain : '<?= JS_DOMAIN ?>'
            }
        })(jQuery);
    </script>
    
</head>
<body>
    <? if($simple_mode !== TRUE): ?>
    <div id="wrap" style="top: 0px;">
        <div class="wrapBox">
            <div id="header">
                <div class="w990" id="regLink">
                    <!-- <span><a href="https://www.toocoolforschool.com/" target="_blank">Kor</a></span> -->
                </div>
            </div>

            <div class="w990 clearfix">
                    <div id="leftMenu">
                        <div id="logo">
                            <a href="<?= DOMAIN ?>">
                        <img src="<?= IMG_DOMAIN."yellow-logo.jpg" ?>"></a></div>
                        <!-- nav start -->
                        <div class="leftBox">
                            <ul>
                                <? if($_menu): ?>
                                    <? $i=1; ?>
                                    <? foreach($_menu as $m): ?>
                                        <li class="nav-0<?= $i ?>">
                                            <? $cur = $current_url && ( $current_url == $m['url'] || in_array($current_url, $m['children'])) ? TRUE : FALSE ?>
                                                <a class="nav <?= $cur ? "cur" : "" ?>" href="<?= $m['url'].'#down' ?>" >
                                                    <?= $m['name'] ?>
                                                </a>
                                        </li>
                                         <? $i++; ?>
                                    <? endforeach ?>
                                <? endif ?>
                            </ul>
                        </div>
                        <!-- nav end -->
                        <div class="rightBox">
                            <? foreach($_menu as $m): ?>
                                <? if($m['children']): ?>
                                    <? $cur = $current_url && ( $current_url == $m['url'] || in_array($current_url, $m['children'])) ? TRUE : FALSE ?>
                                    <div class="subMenu <?= $cur ? "cur" : "" ?>">
                                        <dl>
                                            <? foreach($m['children'] as $name=>$url): ?>
                                                <dd>
                                                    <i></i>
                                                    <? if( $current_url == $url ): ?>
                                                        <a class="over" href="<?= $url.'#down' ?>">
                                                    <? else: ?>
                                                        <a href="<?= $url.'#down' ?>">
                                                    <? endif ?> 
                                                    <?= $name ?></a>
                                                </dd>
                                            <? endforeach ?>
                                        </dl>
                                    </div>
                                <? else: ?>
                                    <div class="subMenu"></div>
                                <? endif ?>
                            <? endforeach ?>
                        </div>
                    </div>
                    <div id="contents">
    <? endif ?>


    